home *** CD-ROM | disk | FTP | other *** search
-
- #include <string.h>
- #include "netbios.h"
-
- /*************************************************************
- * init_ncb - clear and initialize net control block
- * Parameters: ncb (in/out) - net control block to be cleared
- * Notes: code sets the network adapter number to 0 (primary)
- * History: Original code by William H. Roetzheim, 1990
- ***************************************************************/
-
- void init_ncb(struct net_control_block *ncb)
- {
- memset(ncb, 0, sizeof(struct net_control_block));
- ncb->rto = RECEIVE_TIMEOUT;
- ncb->sto = SEND_TIMEOUT;
- }
-